<?php
class ApplyForm extends CFormModel
{
	public $name;
	public $description;
	public $reason;
	public $category;
	public $image;

	public function rules()
	{
		return array(
			array('name,description,reason,category','required'),
		);
	}

	public function attributeLabels()
	{
		return array(
			'name'=>'小组名',
			'description'=>'小组公告',
			'reason'=>'申请理由',
			'category'=>'分类',
			'image'=>'小组头像',
		);
	}
}
?>
